﻿using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace HYRElectric.PowerSystem
{
	public class SubWindow : NativeWindow
	{
		[DllImport("user32.dll")]
		public static extern int ShowScrollBar(IntPtr hWnd, int iBar, int bShow);

		protected override void WndProc(ref Message m)
		{
			SubWindow.ShowScrollBar(m.HWnd, 0, 0);
			base.WndProc(ref m);
		}

		private const int SB_HORZ = 0;

		private const int SB_VERT = 1;
	}
}
